/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package thinkinginjava.svn.genericmethods;

/**
 *
 * @author public_enemy
 */
public class GenericMethod {
    
    public <T> void f(T x){
        System.out.println(x.getClass().getName());
    }
    
    public <T> void f(T x, T y, T z) {
            System.out.println(x.getClass().getName() + " "+ y.getClass().getName() + " " + z.getClass().getName());
    }
    
    public static void main(String[] args) {
        GenericMethod gm = new GenericMethod();
        gm.f(" ");
        gm.f(1, 1.0F, "A");
        gm.f(1.0);
        gm.f(1.0F);
        gm.f('c');
        gm.f("c");
    }
}
